package com.xing.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@TableName("live_apply")
@NoArgsConstructor
@AllArgsConstructor
public class LiveApplyEntity {

    @TableId
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    @JsonSerialize(using = ToStringSerializer.class)
    private Long userId;

    @JsonSerialize(using = ToStringSerializer.class)
    private Long informationId;


    /**
     * 申请时间
     */
    private Date appleDate;

    @JsonSerialize(using = ToStringSerializer.class)
    private Long adminId;

    /**
     * 0:等待处理
     * 1:通过
     * 2:驳回
     */
    private Integer passFlag;

    /**
     * 驳回理由
     */
    private String overruled;

    /**
     * 逻辑删除
     * 0:正常
     * 1:删除
     */
    private Integer delFlag;

}
